/*
 * Copyright (C) 2023 Realtek Semiconductor Corp. 
 * All Rights Reserved.
 *
 * This program is the proprietary software of Realtek Semiconductor
 * Corporation and/or its licensors, and only be used, duplicated, 
 * modified or distributed under the authorized license from Realtek. 
 *
 * ANY USE OF THE SOFTWARE OTHER THAN AS AUTHORIZED UNDER 
 * THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. 
 *
 * Purpose : Definition of ME attribute: PPTP FTTR P2MP Port  (65506)
 *
 * Feature : The file includes the following modules and sub-modules
 *           (1) ME attribute: PPTP FTTR P2MP Port  (65506)
 */

#ifndef __MIB_PPTP_FTTR_P2MP_PORT_TABLE_H__
#define __MIB_PPTP_FTTR_P2MP_PORT_TABLE_H__


/* Table Anig attribute index */
#define MIB_TABLE_PPTP_FTTR_P2MP_PORT_ATTR_NUM (3)
#define MIB_TABLE_PPTP_FTTR_P2MP_PORT_ENTITYID_INDEX ((MIB_ATTR_INDEX)1)
#define MIB_TABLE_PPTP_FTTR_P2MP_PORT_ADMINSTATE_INDEX ((MIB_ATTR_INDEX)2)
#define MIB_TABLE_PPTP_FTTR_P2MP_PORT_OPSTATE_INDEX ((MIB_ATTR_INDEX)3)



typedef enum {
    PPTP_FTTR_P2MP_PORT_TEST_SELF_TEST_RESULT_UNSUPPORTED          = 0,
    PPTP_FTTR_P2MP_PORT_TEST_SELF_TEST_RESULT_POWER_FEED_VOLTAGE   = 1,
    PPTP_FTTR_P2MP_PORT_TEST_SELF_TEST_RESULT_RX_OPTICAL_POWER     = 3,
    PPTP_FTTR_P2MP_PORT_TEST_SELF_TEST_RESULT_MEAN_OPTICAL_POWER   = 5,
    PPTP_FTTR_P2MP_PORT_TEST_SELF_TEST_RESULT_LASER_BIAS_CURRENT   = 9,
    PPTP_FTTR_P2MP_PORT_TEST_SELF_TEST_RESULT_TEMPERATURE          = 12,
} pptp_ftt2_p2mp_port_test_self_test_result_t;


// Table PPTP FTTR P2MP Port  entry stucture
typedef struct {
    UINT16	EntityID; // index 1
    UINT8	AdminState;
    UINT8	OpState;
} __attribute__((packed)) MIB_TABLE_PPTP_FTTR_P2MP_PORT_T;


#endif
